package com.feigncloud.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * order调用支付模块
 */

@Component
@FeignClient(value = "cloud-consul-consumer-payment")
public interface PaymentFeignService {
    @GetMapping(value="/payment/get/{id}")
    public Object getPaymentById(@PathVariable("id") Long id);

    @GetMapping(value = "/payment/feign/timeout")
    public String paymentFeignTimeout();
}
